﻿ <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="HeadContent" runat="server">
    <title>创建新用户</title>
</asp:Content>
<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
    <div id="other">
        <h2>创建新用户</h2>
        <span style="color:Red;"><%= ViewData["message"]==null?"":ViewData["message"].ToString() %></span>
        <% using (Html.BeginForm())
           { %>
        <div>
            <fieldset>
                <legend>用户信息</legend>
                <p>
                    <label for="username">
                        用户名:</label>
                    <%= Html.TextBox("DisplayName", ViewData["DisplayName"])%>
                </p>
                <p>
                    <label for="email">
                        邮箱:</label>
                    <%= Html.TextBox("email", ViewData["email"])%>
                </p>
                <p>
                    <label for="password">
                        密码:</label>
                    <%= Html.Password("password") %>
                </p>
                <p>
                    <label for="confirmPassword">
                        密码确认:</label>
                    <%= Html.Password("confirmPassword") %>
                </p>
                <p>
                    <input type="submit" value="注册" class="input width-60" /> <a href="/login">登录</a>
                </p>
            </fieldset>
        </div>
        <% } %>
    </div>
</asp:Content>
